<?php 

	switch ($data->eventinfo->type ) {
		
		//普通文字
		case 'txt':
			$this->renderPartial('/index/_feedoftxt', array('data'=>$data));
		break;

		//带图片
		case 'photo':
			$this->renderPartial('/index/_feedofphoto', array('data'=>$data));
		break;
	}

?>